package com.alan.swagger2.bean;

/**
 * 
 * @author alan
 * @version 创建时间：2016年10月20日 下午6:48:52
 */
public class RestStatus{
    private Boolean status;
    private String errorCode;
    private String userMessage;
    private String errorMessage;
    public RestStatus(){
        this.errorCode="";
        this.errorMessage="";
    }
    public RestStatus(Boolean status){
        this.status=status;
        this.errorCode="";
        this.errorMessage="";
    }
    public RestStatus(Boolean status,String errorCode,String errorMessage){
        this.status=status;
        this.errorCode=errorCode;
        this.errorMessage=errorMessage;
    }
    public Boolean getStatus(){
        return status;
    }
    public void setStatus(Boolean status){
        this.status=status;
    }
    public String getErrorCode(){
        return errorCode;
    }
    public void setErrorCode(String errorCode){
        this.errorCode=errorCode;
    }
    public String getErrorMessage(){
        return errorMessage;
    }
    public void setErrorMessage(String errorMessage){
        this.errorMessage=errorMessage;
    }
    
    public String getUserMessage() {
		return userMessage;
	}
	public void setUserMessage(String userMessage) {
		this.userMessage = userMessage;
	}


	public static final String CODE_500 = "500";//内部错误
    public static final String CODE_200 = "200";//正常
    public static final String CODE_404 = "404";//路径错误
    public static final String CODE_999 = "999";//异常
    
    public static final String CODE_500_MSG = "内部错误";//内部错误
    public static final String CODE_200_MSG = "成功";//正常
    public static final String CODE_404_MSG = "路径错误";//路径错误
    public static final String CODE_999_MSG = "异常";//异常
}
